<?php
class CartWS_CartController extends Ext_Controller_ServerAction {
    protected $_serverClass = 'CartWS_Service_Order';

    public function init() {
        parent::init();

        // init formula engine.
        $this->_formula = CartWS_Model_FormulaEngine_Engine::getInstance();
        $this->_formula->setDb( $this->_db );
    }

    public function amfAction() {
        parent::amfAction();
        $this->_formula->requestDone();
    }

    public function soapAction() {
        parent::soapAction();
        $this->_formula->requestDone();
    }


    public function jsonAction() {
        parent::jsonAction();
        $this->_formula->requestDone();
    }

    public function xmlrpcAction() {
        parent::xmlrpcAction();
        $this->_formula->requestDone();
    }

    public function restAction() {
        parent::restAction();
        $this->_formula->requestDone();
    }

}